export function getNodeByKeyAndCallbackProcess (data, targetkey, callback) {
      data.forEach((item, index, arr) => {
	        if (item.key === targetkey) {
	          return callback(item, index, arr);
	        }
	        if (item.children) {
	
	          return getNodeByKeyAndCallbackProcess(item.children, targetkey, callback);
	        }
      });
};

export function getNodeByNameAndCallbackProcess (data, target, callback) {
      data.forEach((item, index, arr) => {
	        if (item.i18n_name === target) {
	          return callback(item, index, arr);
	        }
	        if (item.children) {
	
	          return getNodeByNameAndCallbackProcess(item.children, target, callback);
	        }
      });
};